package com.google.code.p.restrpc.core.async;

import com.google.code.p.restrpc.Shutdownable;

/**
 * @author dz
 */
public interface AsyncServiceQueue extends Shutdownable {
    
    /**
     * @return
     */
    public int size();
    
    /**
     * @param request
     * @throws AsyncRequestRejectedException
     */
    public void addAsynServiceRequest(AsynServiceRequest request) throws AsyncRequestRejectedException;
    
}
